package action.main;

import java.util.List;

import service.MainService;
import entity.Book;

public class RecommendAction {
	//output
	private List<Book> recommends;
	//injection
	private MainService mainService;
	public void setMainService(MainService mainService) {
		this.mainService = mainService;
	}
	
	public String execute() throws Exception{
		recommends=mainService.findRecommend();
		return "success";
	}

	public List<Book> getRecommends() {
		return recommends;
	}

	public void setRecommends(List<Book> recommends) {
		this.recommends = recommends;
	}
	
}
